package com.lovo.product.service;

import com.lovo.common.bean.Product;
import org.springframework.data.domain.Page;

import java.util.List;

public interface ProductElasticsearchService {
    List findAll();
    Page<Product> findAllByPage(Integer current,Integer pageSize);
    List findByName(String name);
    void add(Product product);
    void update(Product product);
    void delete(Integer id);
}
